[INFO] cloning repository https://github.com/Evan-Le-Chenadec/drna-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Evan-Le-Chenadec/drna-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvan-Le-Chenadec%2Fdrna-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvan-Le-Chenadec%2Fdrna-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 90e6e12d0dc3fb1f2cc4231e6ed2b0549bb5304f
[INFO] fixing Evan-Le-Chenadec/drna-rs against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvan-Le-Chenadec%2Fdrna-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Evan-Le-Chenadec/drna-rs
[INFO] finished tweaking git repo https://github.com/Evan-Le-Chenadec/drna-rs
[INFO] tweaked toml for git repo https://github.com/Evan-Le-Chenadec/drna-rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Evan-Le-Chenadec/drna-rs on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Evan-Le-Chenadec/drna-rs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 10019397c4881e2133c2a000969159bcc80b08958eb40f76388024f9ef549649
[INFO] running `Command { std: "docker" "start" "10019397c4881e2133c2a000969159bcc80b08958eb40f76388024f9ef549649", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "10019397c4881e2133c2a000969159bcc80b08958eb40f76388024f9ef549649" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "10019397c4881e2133c2a000969159bcc80b08958eb40f76388024f9ef549649", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "10019397c4881e2133c2a000969159bcc80b08958eb40f76388024f9ef549649" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking drna-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: character literal may only contain one codepoint
[INFO] [stdout]   --> src/lib.rs:43:25
[INFO] [stdout]    |
[INFO] [stdout] 43 |             if codon == 'DNA'
[INFO] [stdout]    |                         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if you meant to write a string literal, use double quotes
[INFO] [stdout]    |
[INFO] [stdout] 43 -             if codon == 'DNA'
[INFO] [stdout] 43 +             if codon == "DNA"
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: character literal may only contain one codepoint
[INFO] [stdout]   --> src/lib.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if you meant to write a string literal, use double quotes
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != "TGA" or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: character literal may only contain one codepoint
[INFO] [stdout]   --> src/lib.rs:45:50
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                                  ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if you meant to write a string literal, use double quotes
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != 'TGA' or codon != "TAA" or codon != 'TAG'
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: character literal may only contain one codepoint
[INFO] [stdout]   --> src/lib.rs:45:68
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                                                    ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if you meant to write a string literal, use double quotes
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != 'TGA' or codon != 'TAA' or codon != "TAG"
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `or` is not a logical operator
[INFO] [stdout]   --> src/lib.rs:45:38
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                      ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
[INFO] [stdout] help: use `||` to perform logical disjunction
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != 'TGA' || codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `or` is not a logical operator
[INFO] [stdout]   --> src/lib.rs:45:56
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                                        ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
[INFO] [stdout] help: use `||` to perform logical disjunction
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != 'TGA' or codon != 'TAA' || codon != 'TAG'
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: character literal may only contain one codepoint
[INFO] [stdout]   --> src/lib.rs:43:25
[INFO] [stdout]    |
[INFO] [stdout] 43 |             if codon == 'DNA'
[INFO] [stdout]    |                         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if you meant to write a string literal, use double quotes
[INFO] [stdout]    |
[INFO] [stdout] 43 -             if codon == 'DNA'
[INFO] [stdout] 43 +             if codon == "DNA"
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: character literal may only contain one codepoint
[INFO] [stdout]   --> src/lib.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if you meant to write a string literal, use double quotes
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != "TGA" or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: character literal may only contain one codepoint
[INFO] [stdout]   --> src/lib.rs:45:50
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                                  ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if you meant to write a string literal, use double quotes
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != 'TGA' or codon != "TAA" or codon != 'TAG'
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: character literal may only contain one codepoint
[INFO] [stdout]   --> src/lib.rs:45:68
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                                                    ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if you meant to write a string literal, use double quotes
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != 'TGA' or codon != 'TAA' or codon != "TAG"
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `or` is not a logical operator
[INFO] [stdout]   --> src/lib.rs:45:38
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                      ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
[INFO] [stdout] help: use `||` to perform logical disjunction
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != 'TGA' || codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `or` is not a logical operator
[INFO] [stdout]   --> src/lib.rs:45:56
[INFO] [stdout]    |
[INFO] [stdout] 45 |                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout]    |                                                        ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
[INFO] [stdout] help: use `||` to perform logical disjunction
[INFO] [stdout]    |
[INFO] [stdout] 45 -                 while codon != 'TGA' or codon != 'TAA' or codon != 'TAG'
[INFO] [stdout] 45 +                 while codon != 'TGA' or codon != 'TAA' || codon != 'TAG'
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/lib.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::Ordering`
[INFO] [stdout]  --> src/lib.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp::Ordering;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::string`
[INFO] [stdout]  --> src/lib.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::string;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections`
[INFO] [stdout]  --> src/lib.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/lib.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::Ordering`
[INFO] [stdout]  --> src/lib.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp::Ordering;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::string`
[INFO] [stdout]  --> src/lib.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::string;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections`
[INFO] [stdout]  --> src/lib.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/lib.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn main()
[INFO] [stdout]   |          - expected `()` because of default return type
[INFO] [stdout] 7 | {
[INFO] [stdout] 8 |     return 0;
[INFO] [stdout]   |            ^ expected `()`, found integer
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `length` in this scope
[INFO] [stdout]   --> src/lib.rs:18:17
[INFO] [stdout]    |
[INFO] [stdout] 18 |         while i<length(DNA)
[INFO] [stdout]    |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:20:20
[INFO] [stdout]    |
[INFO] [stdout] 20 |             if DNA[i] == 'T'
[INFO] [stdout]    |                    ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:22:21
[INFO] [stdout]    |
[INFO] [stdout] 22 |                 RNA[i] = 'U';
[INFO] [stdout]    |                     ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:26:21
[INFO] [stdout]    |
[INFO] [stdout] 26 |                 RNA[i]=DNA[i];
[INFO] [stdout]    |                     ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:26:28
[INFO] [stdout]    |
[INFO] [stdout] 26 |                 RNA[i]=DNA[i];
[INFO] [stdout]    |                            ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/lib.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | /     loop
[INFO] [stdout] 16 | |     {
[INFO] [stdout] 17 | |         i+=1;
[INFO] [stdout] 18 | |         while i<length(DNA)
[INFO] [stdout] ...  |
[INFO] [stdout] 29 | |     }
[INFO] [stdout]    | |_____- any code following this expression is unreachable
[INFO] [stdout] 30 |       return RNA;
[INFO] [stdout]    |       ^^^^^^^^^^^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn DNA_to_RNA(DNA: String)
[INFO] [stdout]    |                           - help: try adding a return type: `-> String`
[INFO] [stdout] ...
[INFO] [stdout] 30 |     return RNA;
[INFO] [stdout]    |            ^^^ expected `()`, found `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/lib.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn main()
[INFO] [stdout]   |          - expected `()` because of default return type
[INFO] [stdout] 7 | {
[INFO] [stdout] 8 |     return 0;
[INFO] [stdout]   |            ^ expected `()`, found integer
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:39:29
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut codon = DNA[i] + DNA[i+1] + DNA[i+2];
[INFO] [stdout]    |                             ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:39:38
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut codon = DNA[i] + DNA[i+1] + DNA[i+2];
[INFO] [stdout]    |                                      ^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:39:49
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut codon = DNA[i] + DNA[i+1] + DNA[i+2];
[INFO] [stdout]    |                                                 ^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `length` in this scope
[INFO] [stdout]   --> src/lib.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 |         while i<length(DNA)-2
[INFO] [stdout]    |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `length` in this scope
[INFO] [stdout]   --> src/lib.rs:18:17
[INFO] [stdout]    |
[INFO] [stdout] 18 |         while i<length(DNA)
[INFO] [stdout]    |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:20:20
[INFO] [stdout]    |
[INFO] [stdout] 20 |             if DNA[i] == 'T'
[INFO] [stdout]    |                    ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:22:21
[INFO] [stdout]    |
[INFO] [stdout] 22 |                 RNA[i] = 'U';
[INFO] [stdout]    |                     ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `append` found for struct `String` in the current scope
[INFO] [stdout]   --> src/lib.rs:47:26
[INFO] [stdout]    |
[INFO] [stdout] 47 |                     ORFs.append(codon);
[INFO] [stdout]    |                          ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to use `push_str`
[INFO] [stdout]    |
[INFO] [stdout] 47 -                     ORFs.append(codon);
[INFO] [stdout] 47 +                     ORFs.push_str(codon);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/lib.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | /     loop
[INFO] [stdout] 38 | |     {
[INFO] [stdout] 39 | |         let mut codon = DNA[i] + DNA[i+1] + DNA[i+2];
[INFO] [stdout] 40 | |         i+=1;
[INFO] [stdout] ...  |
[INFO] [stdout] 51 | |     }
[INFO] [stdout]    | |_____- any code following this expression is unreachable
[INFO] [stdout] 52 |       return ORFs;
[INFO] [stdout]    |       ^^^^^^^^^^^^ unreachable statement
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:26:21
[INFO] [stdout]    |
[INFO] [stdout] 26 |                 RNA[i]=DNA[i];
[INFO] [stdout]    |                     ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:26:28
[INFO] [stdout]    |
[INFO] [stdout] 26 |                 RNA[i]=DNA[i];
[INFO] [stdout]    |                            ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/lib.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | /     loop
[INFO] [stdout] 16 | |     {
[INFO] [stdout] 17 | |         i+=1;
[INFO] [stdout] 18 | |         while i<length(DNA)
[INFO] [stdout] ...  |
[INFO] [stdout] 29 | |     }
[INFO] [stdout]    | |_____- any code following this expression is unreachable
[INFO] [stdout] 30 |       return RNA;
[INFO] [stdout]    |       ^^^^^^^^^^^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | fn ORF_search(DNA: String)
[INFO] [stdout]    |                           - help: try adding a return type: `-> String`
[INFO] [stdout] ...
[INFO] [stdout] 52 |     return ORFs;
[INFO] [stdout]    |            ^^^^ expected `()`, found `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn DNA_to_RNA(DNA: String)
[INFO] [stdout]    |                           - help: try adding a return type: `-> String`
[INFO] [stdout] ...
[INFO] [stdout] 30 |     return RNA;
[INFO] [stdout]    |            ^^^ expected `()`, found `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:39:29
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut codon = DNA[i] + DNA[i+1] + DNA[i+2];
[INFO] [stdout]    |                             ^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:39:38
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut codon = DNA[i] + DNA[i+1] + DNA[i+2];
[INFO] [stdout]    |                                      ^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `i32`
[INFO] [stdout]   --> src/lib.rs:39:49
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut codon = DNA[i] + DNA[i+1] + DNA[i+2];
[INFO] [stdout]    |                                                 ^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `i32`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/slice/index.rs:174:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `String` to implement `Index<i32>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `length` in this scope
[INFO] [stdout]   --> src/lib.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 |         while i<length(DNA)-2
[INFO] [stdout]    |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `append` found for struct `String` in the current scope
[INFO] [stdout]   --> src/lib.rs:47:26
[INFO] [stdout]    |
[INFO] [stdout] 47 |                     ORFs.append(codon);
[INFO] [stdout]    |                          ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to use `push_str`
[INFO] [stdout]    |
[INFO] [stdout] 47 -                     ORFs.append(codon);
[INFO] [stdout] 47 +                     ORFs.push_str(codon);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/lib.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | /     loop
[INFO] [stdout] 38 | |     {
[INFO] [stdout] 39 | |         let mut codon = DNA[i] + DNA[i+1] + DNA[i+2];
[INFO] [stdout] 40 | |         i+=1;
[INFO] [stdout] ...  |
[INFO] [stdout] 51 | |     }
[INFO] [stdout]    | |_____- any code following this expression is unreachable
[INFO] [stdout] 52 |       return ORFs;
[INFO] [stdout]    |       ^^^^^^^^^^^^ unreachable statement
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | fn ORF_search(DNA: String)
[INFO] [stdout]    |                           - help: try adding a return type: `-> String`
[INFO] [stdout] ...
[INFO] [stdout] 52 |     return ORFs;
[INFO] [stdout]    |            ^^^^ expected `()`, found `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `drna-rs` (lib test) due to 19 previous errors; 6 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `drna-rs` (lib) due to 19 previous errors; 6 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "10019397c4881e2133c2a000969159bcc80b08958eb40f76388024f9ef549649", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "10019397c4881e2133c2a000969159bcc80b08958eb40f76388024f9ef549649", kill_on_drop: false }`
[INFO] [stdout] 10019397c4881e2133c2a000969159bcc80b08958eb40f76388024f9ef549649
